package com.ray.depot.service;

import com.ray.depot.table.dto.LibraryDto;
import com.ray.depot.table.entity.Library;
import com.zjhc.flyhong.common.function.operator.LoginUser;
import com.zjhc.flyhong.common.function.operator.PageDto;
import com.zjhc.flyhong.common.web.Result;

public interface LibraryService {

	/**
	 * 新增
	 * @param params
	 * @param user
	 * @return
	 */
	Result<Object> addLibrary(Library params, LoginUser user);
	
    /**
     * 查询
     * @param id
     * @param user
     * @return
     */
	Library queryLibrary(String id, LoginUser user);
	
    /**
     * 修改
     * @param params
     * @param user
     * @return
     */
	Result<Object> updateLibrary(Library params, LoginUser user);
	
    /**
     * 删除
     * @param id
     * @param user
     * @return
     */
	Result<Object> deleteLibrary(String id, LoginUser user);
	
   /**
    * 查询
    * @param params
    * @param page
    * @param user
    * @return
    */
	PageDto<Library> queryLibrary(Library params, PageDto<Library> page, LoginUser user);
    /**
     * 删除仓库对应的库位
     * @param id
     * @param user
     */
   void deleteLibraryByWarehouseId(String id, LoginUser user);
    /**
     * 选手数查询
     * @param params
     * @param page
     * @param user
     * @return
     */
	PageDto<LibraryDto> querySelectLibrary(Library params,String materialId, PageDto<LibraryDto> page, LoginUser user);
   

}
